system of equations for tension and acceleration